package com.atguigu.gmall.cart.client;

import com.atguigu.gmall.model.cart.CartInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

@FeignClient("service-cart")
public interface CartFeignClient {

    @GetMapping("/api/cart/addcart/{skuId}/{skuNum}")
    void addCart(@PathVariable Long skuId, @PathVariable Integer skuNum);

    @GetMapping("/api/cart/addToCart/{skuId}")
    CartInfo addToCart(@PathVariable Long skuId);

    @GetMapping("/api/cart/getIsCheckedCart")
     List<CartInfo> getIsCheckCartList();
}
